package com.bdqn.t330.ch10.repository;

import com.bdqn.t330.ch10.entity.Right;
import com.bdqn.t330.ch10.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RightRepository extends JpaRepository<Right, String> {
    //根据角色查询该角色能访问的url
    public List<Right> findRightsByRolesOrderByRightCode(Role role);
}
